package com.teamall.web.app.vo;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;
import java.util.List;

/**
 * ${DESCRIPTION}
 *
 * @author
 * @create 2017-08-23 22:30
 **/
public class AppNoticeVO {
    private Integer infoId;
    private String title;
    private String content;
    @JsonFormat(pattern = "yyyy.MM.dd", locale = "zh" , timezone="GMT+8")
    private Date pubDate;
    private String banner;
    private String infoName;

    public String getInfoName() {
        return infoName;
    }

    public void setInfoName(String infoName) {
        this.infoName = infoName;
    }

    public String getBanner() {
        return banner;
    }

    public void setBanner(String banner) {
        this.banner = banner;
    }

    public Integer getInfoId() {
        return infoId;
    }

    public void setInfoId(Integer infoId) {
        this.infoId = infoId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        if(content.length()>=80){
            return content.substring(0,80);
        }else {
            return content;
        }
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Date getPubDate() {
        return pubDate;
    }

    public void setPubDate(Date pubDate) {
        this.pubDate = pubDate;
    }

}
